import stockApi from "@/api/declaration/erp/stockApi"
import httpRequest from "@/config/axios/httpRequest"



// ERP 产品库存明细 API
export const StockRecordApi = {
  // 查询产品库存明细分页
  getStockRecordPage: async (params: any) => {
    return await httpRequest.get(stockApi.GetStockRecordPage, { params })
  },

  // 查询产品库存明细详情
  getStockRecord: async (id: number) => {
    return await httpRequest.get(stockApi.GetStockRecord, { params: { id } })
  },

  // 导出产品库存明细 Excel
  exportStockRecord: async (params) => {
    return await httpRequest.download(stockApi.ExportStockRecord, params)
  }
}
